import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { RouteRecordRaw } from 'vue-router';

// 获取排行榜数据
export function rankingList(): AxiosPromise<any> {
  return request({
    url: '/system/order/rankingList',
    method: 'get'
  });
}

// 获取套餐前五列表
export function servicePageList(): AxiosPromise<any> {
    return request({
      url: '/system/order/servicePageList',
      method: 'get'
    });
  }
  
// 获取待服务人数
export function waitingService(): AxiosPromise<any> {
    return request({
      url: '/system/order/waitingService',
      method: 'get'
    });
  }
  
// 获取订单数据统计
export function orderDataStatistics(query): AxiosPromise<any> {
    return request({
      url: '/system/order/orderDataStatistics',
      method: 'get',
      params: query
    });
  }
  